package com.dqp.cslggroup.School;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import com.bumptech.glide.Glide;
import com.dqp.cslggroup.R;


public class Map_two extends Fragment {

    private ImageView imageView;
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        @SuppressLint("InflateParams") View view = inflater.inflate(R.layout.map_view, null);
        imageView=view.findViewById(R.id.map_img);
        imageView.setOnClickListener(v -> {
            Uri uri = Uri.parse("https://720yun.com/t/05126az6x4a?scene_id=761049");
            Intent intent = new Intent(Intent.ACTION_VIEW, uri);
            startActivity(intent);
        });
        Glide.with(this).load("http://47.96.190.22/schoolPhotos/map_dh.jpg").into(imageView);
        TextView textView=view.findViewById(R.id.map_text);
        textView.setText("点击查看东湖全景航拍");
        return view;
    }

}
